<form name="editForm">
	<div class="form-group">
		<div class="col-md-12 form-item"> 	
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>审批类型：</div>	
            <div class="col-lg-8 col-md-8 form-input" 
            	ng-class="{ 'has-error' : editForm.requestType.$dirty && editForm.requestType.$invalid}">
				<select name="requestType" 
					class="form-control" 
					ng-model="editModel.approval.requestType"
					required>
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.requestTypeData" value="{{dictionary.dicCd}}">{{dictionary.dicName}}</option>
                   </select>
            </div>
           </div>
           <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>员工类型：</div>
			<div class="col-sm-8 col-md-8 form-input" 
				ng-class="{ 'has-error' : editForm.requestRole.$dirty && editForm.requestRole.$invalid}">
			 	<select name="requestRole" 
			 		class="form-control" 
			 		ng-model="editModel.approval.requestRole"
					ng-change="editModel.selectBindData(editModel.approval.requestRole,1)"
			 		required>
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.requestRoleData" value="{{dictionary.dicCd}}">{{dictionary.dicName}}</option>
                   </select>
			</div>
		</div>
           <div class="col-md-12 form-item">
           	<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>起止天数：</div>
            <div class="col-sm-8 col-md-8 form-input"
				 ng-class="{ 'has-error' : editForm.fromDays.$dirty && editForm.fromDays.$invalid}">
			 	<input name="fromDays"  
			 		class="form-control" 
			 		ng-model="editModel.approval.fromDays" 
			 		maxLength="2"
			 		ng-pattern="/^([0-9]|[0-5][0-9]|60)$/"
			 		required>
			</div>
           </div>
           <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">终止天数：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<input name="toDays"  
			 		class="form-control" 
			 		ng-model="editModel.approval.toDays" 
			 		maxLength="2"
			 		ng-pattern="/^([0-9]|[0-5][0-9]|60)$/">
			</div>
		</div>
		<div class="col-md-12 form-item"> 	
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>一级审批：</div>	
            <div class="col-lg-8 col-md-8 form-input" 
            	ng-class="{ 'has-error' : editForm.oneApprovalRole.$dirty && editForm.oneApprovalRole.$invalid}">
				<select name="oneApprovalRole" 
					class="form-control" 
					ng-model="editModel.approval.oneApprovalRole"
					ng-change="editModel.selectBindData(editModel.approval.oneApprovalRole,2)"
					required>
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.oneApprovalRoleData" value="{{dictionary.dicCd}}">{{dictionary.dicName}}</option>
                   </select>
            </div>
           </div>
		<div class="col-md-12 form-item"> 	
			<div class="col-sm-3 col-md-3 form-title">二级审批：</div>	
            <div class="col-lg-8 col-md-8 form-input">
				<select class="form-control" 
					ng-model="editModel.approval.twoApprovalRole"
					ng-change="editModel.selectBindData(editModel.approval.twoApprovalRole,3)">
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.twoApprovalRoleData" value="{{dictionary.dicCd}}">{{dictionary.dicName}}</option>
                   </select>
            </div>
           </div>
           <div class="col-md-12 form-item"> 	
			<div class="col-sm-3 col-md-3 form-title">三级审批：</div>	
            <div class="col-lg-8 col-md-8 form-input">
				<select class="form-control" 
					ng-model="editModel.approval.threeApprovalRole"
					ng-change="editModel.selectBindData(editModel.approval.threeApprovalRole,4)">
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.threeApprovalData" value="{{dictionary.dicCd}}">{{dictionary.dicName}}</option>
                   </select>
            </div>
           </div>
           <div class="col-md-12 form-item"> 	
			<div class="col-sm-3 col-md-3 form-title">四级审批：</div>	
            <div class="col-lg-8 col-md-8 form-input">
				<select class="form-control" 
					ng-model="editModel.approval.fourApprovalRole"
					ng-change="editModel.selectBindData(editModel.approval.fourApprovalRole,5)">
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.fourApprovalRoleData" value="{{dictionary.dicCd}}">{{dictionary.dicName}}</option>
                   </select>
            </div>
           </div>
           <div class="col-md-12 form-item"> 	
			<div class="col-sm-3 col-md-3 form-title">五级审批：</div>	
            <div class="col-lg-8 col-md-8 form-input">
				<select class="form-control" 
					ng-model="editModel.approval.fiveApprovalRole">
                       <option value=""></option>
                       <option ng-repeat="dictionary in editModel.fiveApprovalRoleData" value="{{dictionary.dicCd}}">{{dictionary.dicName}}</option>
                   </select>
            </div>
           </div>
	</div>	
</form>

